package pers.chao.logger.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import pers.chao.logger.enums.ColorfulLogTheme;

/**
 * Description: 彩色日志打印方案
 *
 * @author W.Chao
 * @date 2020/11/21 19:08
 **/
@ConfigurationProperties(prefix = "logger.colorful")
public class ColorfulLoggerProperties {
	/**
	 * 文件日志打印格式，符号见ch.qos.logback.classic.PatternLayout
	 */
	private String logFilePattern = ColorfulLogTheme.DEFAULT.getTheme();
	/**
	 * 控制台日志打印格式，符号见ch.qos.logback.classic.PatternLayout
	 */
	private String consolePattern = ColorfulLogTheme.COLORFUL_DEFAULT.getTheme();

	public String getLogFilePattern() {
		return logFilePattern;
	}

	public void setLogFilePattern(String logFilePattern) {
		this.logFilePattern = logFilePattern;
	}

	public String getConsolePattern() {
		return consolePattern;
	}

	public void setConsolePattern(String consolePattern) {
		this.consolePattern = consolePattern;
	}
}
